package cn.org.donald.sensitive.factory;

import cn.org.donald.sensitive.model.FactoryEnum;

import java.nio.file.Path;
import java.util.List;

/**
 * @author Donald
 * @since 2023-11-10 15:28:19
 **/
public class UnknownFindSensitive extends IFindSensitive {

    public UnknownFindSensitive(Path filePath, FactoryEnum factoryEnum) {
        super(filePath, factoryEnum);
    }

    @Override
    public List<String> getSensitiveString(List<String> ruleRegexList) {
        throw new RuntimeException("无法解析该文件【" + super.getFilePath() + "】");
    }

    @Override
    public void replace(List<String> ruleRegexList, Path destPath) {
        throw new RuntimeException("无法解析该文件【" + super.getFilePath() + "】");
    }
}
